
[dbo].[ComponentCategoryRef]
CREATE TABLE [dbo].[ComponentCategoryRef]
(
[ComponentCategoryKey] [uniqueidentifier] NOT NULL CONSTRAINT [DF_ComponentCategoryRef_ComponentCategoryKey] DEFAULT (newid()),
[ComponentCategoryName] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ComponentCategoryRef] ADD CONSTRAINT [PK_ComponentCategoryRef] PRIMARY KEY CLUSTERED ([ComponentCategoryKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ComponentCategoryRef] ADD CONSTRAINT [AK_ComponentCategoryRef_ComponentCategoryDesc] UNIQUE NONCLUSTERED ([ComponentCategoryName]) ON [PRIMARY]
GO